import request from '@/utils/request'

//wifi列表
export function wifiListApi(params) {
    return request({
      url: `/admin/mszs/wifi/pageList`,
      method: 'get',
      params
    })
  }

  //新增wifi信息
  export function addWifiApi(data) {
    return request({
      url: `/admin/mszs/wifi/insert`,
      method: 'post',
      data
    })
  }

    //删除wifi信息
    export function delWifiApi(params) {
      return request({
        url: `/admin/mszs/wifi/delete`,
        method: 'get',
        params
      })
    }

    //根据 id 查询wifi信息
    export function detailWifiApi(params) {
      return request({
        url: `/admin/mszs/wifi/load`,
        method: 'get',
        params
      })
    }

    
    //更改wifi信息
    export function editWifiApi(data) {
      return request({
        url: `/admin/mszs/wifi/update`,
        method: 'post',
        data
      })
    }